<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>精灵图练习</title>
    <style>
    .logo {
        width: 56px;
        height: 56px;
        display: inline-block;
        background: url(images/index.png) no-repeat -184px 0 #333;
        vertical-align: top;
    }
    .welcome {text-decoration: none; color: #fff; background-color: #333;}
    .download {width: 236px; height: 128px; background: url(images/index.png) no-repeat 0 -220px; cursor:pointer;}
    </style>
</head>
<body>
    <div>
        <a href="#" class="logo"></a>
        <a href="#" class="welcome">欢迎登陆</a>
    </div>
    <div class="download"></div>
</body>
</html>